From: Gabriel Wicke Date: Fri, 26 Mar 2004 22:27:43 +0000 (+0000) Subject: skin names as associative array X-Git-Tag: 1.3.0beta1~688 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=008fc55b983eb07abbef57694f29717871aa231e;p=lhc%2Fweb%2Fwiklou.git skin names as associative array --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 395ef77ee7..391c23bf3c 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -303,9 +303,9 @@ value=\"$i\"$checked> {$qbs[$i]}
\n" ); # Only count up to count($wgValidSkinNames) rather than # count($skins), to allow global disabling of experimental # skins. - for ( $i = 0; $i < count( $wgValidSkinNames ); ++$i ) { + foreach ($wgValidSkinNames as $i => $skinname ) { if ( $i == $wpSkin ) { - $checked = " checked"; + $checked = ' checked="checked"'; } else { $checked = ""; }